﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel;
using MvcEngine.Core.Localization;

namespace MvcEngine.Mvc.Models
{
    public class MvcEngineDisplayNameAttribute : DisplayNameAttribute
    {
        public MvcEngineDisplayNameAttribute(string displayName)
        {
            string localization = ResourceReader.Current.GetString(displayName, displayName);
            this.DisplayNameValue = localization;
        }
    }
}
